<!--
 * @Descripttion:
 * @Author: Silence
 * @Date: 2023-08-13 11:30:14
 * @LastEditors: Silence
 * @LastEditTime: 2023-08-16 10:12:36
-->
<template>
  <div class="dialog_com">

    <el-dialog
      title="点位详情"
      :visible="centerDialog"
      width="45%"
      :before-close="handleClose"
    >
      <el-table
        :data="tableDataArr"
        style="width: 100%"
      >
        <el-table-column
          label="日期"
          width="50px"
        >
          <template slot-scope="{$index}">
            {{ $index + 1 }}
          </template>
        </el-table-column>
        <el-table-column
          prop="innerCode"
          label="设备编号"
        />
        <el-table-column
          label="设备状态"
        >
          <template slot-scope="{row}">
            {{ row.vmStatus==0?'未投放':row.vmStatus==1?'运营':'已撤机' }}
          </template>
        </el-table-column>
        <el-table-column
          prop="lastSupplyTime"
          label="最会一次供货时间"
        />
      </el-table>
    </el-dialog>
  </div>
</template>
<script>
export default {
  name: '',
  props: {
    centerDialog: {
      type: Boolean,
      default: false
    },
    tableDataArr: {
      type: Array,
      default: () => []
    }
  },
  data() {
    return {
      tableData: []
    }
  },
  computed: {
  },
  created() {
  },
  methods: {
    handleClose() {
      this.$emit('update:centerDialog', false)
    }
  }
}
</script>
<style lang='less'  scoped>

</style>
